package com.morningstar.uitls;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @className: TimerUtils
 * @description: TODO 类描述
 * @author: LiuZhenHe
 * @date: 2023/10/16 15:14
 **/
@Component
public class TimerUtils {

    // 隔1分钟执行一次
    @Scheduled(fixedDelay = 3000)
    public void myTask(){
        System.out.println("喝咖啡=>品红酒=>吃海底捞");
    }
}
